﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HotelManagement.PL
{
    public partial class SearchTradeForm : Form
    {
        public SearchTradeForm()
        {
            InitializeComponent();
        }

        private void btnClear_Click(object sender, EventArgs e)
        {
            txtGoodsName.Text = string.Empty;
            cobTradeType.SelectedIndex = -1;
            dtTradeFrom.Text = string.Empty;
            dtTradeTo.Text = string.Empty;
            gdvTradeList.DataSource = null;
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {

        }

        private void SearchTradeForm_Load(object sender, EventArgs e)
        {
            InitCombobox();
        }

        private void InitCombobox()
        { 
            string[] arrTradeType = new string[]{string.Empty, "买入", "卖出"};
            cobTradeType.Items.AddRange(arrTradeType);
        }
    }
}
